#!/usr/bin/php
<?php
/**
 * Doctrine CLI runner..
 *
 * @author     Mon Zafra <monzee at gmail>
 * @copyright  (c)2009 Mon Zafra
 * @category   Mz
 * @package    tutorials
 * @subpackage acl
 * @license    http://mz-project.googlecode.com/svn/trunk/LICENSE    MIT License
 * @version    SVN: $Id$
 */

define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
define('APPLICATION_ENV', 'development');
echo APPLICATION_PATH;
set_include_path(
     realpath(APPLICATION_PATH . '/../library').
    PATH_SEPARATOR .
    get_include_path()
);

require_once 'Zend/Application.php';

$app = new Zend_Application(
    APPLICATION_ENV,
    APPLICATION_PATH . '/configs/application.ini'
);

$cli = $app->getBootstrap()
           ->bootstrap('doctrineCli')
           ->getResource('doctrineCli');

$cli->run($_SERVER['argv']);
